
//导入vue
import Vue from 'vue';

//导入路由
import VueRouter from 'vue-router';

//导入路径所对应的组件
import Home from '../pages/HelloFromVux';
import Login from '../pages/Login';
import Deng from '../pages/Deng';
import Zhuce from '../pages/Zhuce';
import Myde from '../pages/Myde';
import Classify from '../pages/Classify';
import Shoping from '../pages/Shoping';
import Fromtt from '../pages/Fromtt';
import Add from '../pages/Add';
import Ment from '../pages/Ment';
import Xiang from '../pages/Xiang';
import Upadd from '../pages/Upadd';
import Pinglun from '../pages/Pinglun';
import Goumai from '../pages/Goumai';
import Seek from '../pages/Seek';
import Dingdan from '../pages/Dingdan';
import Address from '../pages/Address';
import Receving from '../pages/Receving';
import Xiaoxi from '../pages/Xiaoxi';

Vue.use(VueRouter);

//路由配置
const routes = [
  {
  path: '/',
  component: Home
},
{
  path: '/login',
  component: Login
},
{
  path: '/deng',
  component: Deng
},
{
  path: '/zhuce',
  component: Zhuce
},
{
  path: '/myde',
  component: Myde
},
{
  path: '/classify',
  component: Classify
},
{
  path: '/shoping',
  component: Shoping
},
{
  path: '/fromtt',
  component: Fromtt
},
{
  path: '/add',
  component: Add
},
{
  path: '/ment',
  component: Ment
},
{
  path: '/xiang/:id',
  component: Xiang
}
,
{
  path: '/upadd/:id',
  component: Upadd
},
{
  path: '/pinglun/:id',
  component: Pinglun
},
{
  path: '/goumai',
  component: Goumai
},
{
  path: '/seek',
  component: Seek
},
{
  path: '/dingdan',
  component: Dingdan
},
{
  path: '/address',
  component: Address
},
{
  path: '/receving',
  component: Receving
},
{
  path: '/xiaoxi',
  component: Xiaoxi
}

]

export default new VueRouter({
	routes
})
